package com.jin.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jin.common.utils.PageUtils;
import com.jin.gulimall.product.entity.AttrGroupEntity;
import com.jin.gulimall.product.vo.AttrGroupWithAttrsVO;
import com.jin.gulimall.product.vo.AttrRelationVO;
import com.jin.gulimall.product.vo.SkuItemVo;
import com.jin.gulimall.product.vo.SpuItemGroupAttrVO;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author shenjin
 * @email shenjin@gmail.com
 * @date 2021-02-23 10:34:06
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    void deleteAttrRelation(AttrRelationVO[] vos);

    List<AttrGroupWithAttrsVO> getAttrGroupWithAttrsBycatelogId(Long catelogId);

    List<SpuItemGroupAttrVO> getSpuAttrsWithSpu(Long catalogId, Long spuId);
}

